package cate.game.activity.luckycharm.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBLuckyCharm;
import easy.java.dev.note.NoteField;

public class LuckyCharmGetRewardReq implements MsgInput {
    @NoteField("阶段 （1，2，3）")
    public int period;
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getActivity().luckyCharm.getReward(period);
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBLuckyCharm.GET_REWARD_REQ;
    }
}
